package com.livvy.commons.utils.image;

/**
 * Copyright livvy guo and other contributors
 * Released under the MIT license
 * <p/>
 * Created with IntelliJ IDEA.
 * User: GuoZheng
 * Date: 13-11-17
 * Time: 下午4:50
 */


import java.io.IOException;
import java.util.Date;

public class ValidateCodeTest {


    /**
     * @param args
     */
    public static void main(String[] args) {
        ValidateCode vCode = new ValidateCode(120,40,5,100);
        try {
            String path="D:/t/"+new Date().getTime()+".png";
            System.out.println(vCode.getCode()+" >"+path);
            vCode.write(path);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
